package cn.mst.vrs.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

@Schema(description = "管理后台 - 预约用户新增/修改 Request VO")
@Data
public class UserSaveReqVO {

    @Schema(description = "昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "昵称不能为空")
    private String nickName;

    @Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "头像不能为空")
    private String avatar;

    @Schema(description = "个人签名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "个人签名不能为空")
    private String sign;

    @Schema(description = "性别（0：女，1：男，2：保密）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "性别（0：女，1：男，2：保密）不能为空")
    private Integer gender;

    @Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出生日期不能为空")
    private LocalDate birthday;

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24719")
    private Long id;

}